package com.xtm.exercise.utils.uuid;

import com.baomidou.mybatisplus.core.toolkit.Sequence;

/***
 *@Author: 王磊
 *@CreateTime: 2024-12-26  19:44
 *@Description: TODO
 *@title: IdGenerator
 */
public class IdGenerator {
    private static Sequence WORKER = new Sequence();

    public IdGenerator() {
    }

    public static long getId() {
        return WORKER.nextId();
    }

    public static String getIdStr() {
        return String.valueOf(WORKER.nextId());
    }
}
